package com.pctx.bibatracker.controller;


import com.pctx.bibacommon.result.Result;
import com.pctx.bibatracker.service.AlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 报警
 */
@CrossOrigin
@RestController
@RequestMapping("/alarm")
public class AlarmController {
    @Autowired
    private AlarmService alarmService;

    @RequestMapping("/selectAlarm")
    public Result selectAlarm(String deviceNo) throws Exception {
        return alarmService.selectAlarm(deviceNo);
    }
}
